home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / Jooky / cleanup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-01  |  558 b   |  34 lines

  1. #include "defines.h"
  2. #include "includes.h"
  3. #include "funcs.h"
  4.  
  5. void cleanup()
  6. {
  7.     int freez=1;
  8.     /* clean up the whole list before exiting */
  9.     struct mp3ent *temp ;
  10.     temp=curr;
  11.     while ((temp=zap(temp))!=NULL) ++freez ;
  12.     if (daemonize==0)
  13.     {
  14.         move(LINES-1,0);
  15.         clrtoeol();
  16.         for (qq=STATUSLINE+1;qq<=LINES-3;++qq)
  17.         {
  18.             move(qq,0);
  19.             clrtoeol();
  20.         }
  21.  
  22.         for (x=0;x<=4;++x)
  23.         {
  24.             move(x,0);
  25.             clrtoeol();
  26.         }
  27.         mvprintw(5,(COLS-12)/2,"(%0.5d frees)",freez);
  28.         msgcountback[5]=10;
  29.         clrtoeol();
  30.         refresh();
  31.         sleep(1);
  32.     }
  33. }
  34.